#ifndef _EQCLIENT_GLEW_CONTEXT_HOLDER_H
#define _EQCLIENT_GLEW_CONTEXT_HOLDER_H

#include <eq/gl.h>

namespace eqClient
{
    class GLEWContextHolder
    {
        public:
            explicit GLEWContextHolder(GLEWContext const* context) : context(context) {}
            virtual ~GLEWContextHolder() {}
            
            GLEWContext const* glewGetContext() const { return context; }
            
        private:
            GLEWContextHolder(GLEWContextHolder const&);
            GLEWContextHolder& operator = (GLEWContextHolder const&);
            
            GLEWContext const* const context;
    };
}

#endif
